﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NPOI.SS.UserModel;
using Zeus.Components.Nopi.Excel;

namespace Zeus.Thunder.Web.DataExporter
{
    public class SettingBuilder
    {
        public static TemplateSetting Build()
        {
            TemplateSetting setting = new TemplateSetting()
                                    {
                                        ColumnWidthMultiplier = 256,
                                        QuoteDataColumnStartIndex = 2,
                                        TableHeaderRowHeight = 1800,
                                        DefaultFontSize = 11,
                                        DefaultFontWeight = (short)FontBoldWeight.NORMAL,
                                        NumberFormat = "0.00",
                                        TitleFontSize = 15,
                                        TitleRowHeight = 400,
                                        DateColumnWidth = 17,
                                        DefaultColumnWidth = 25,
                                        MessageColumnWidth = 35,
                                        DefaultDateFormat = "dd-MMM-yyyy",
                                        BlankColumnWidth = 4,

                                        TableBodyColor = System.Drawing.Color.FromArgb(197, 217, 241),
                                        TableHeaderColor = System.Drawing.Color.FromArgb(141, 180, 227)
                                    };

            return setting;
        }
    }
}